/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-06-19 19:45:13
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-06-20 19:44:13
 * @FilePath: \cq-admin-vue3\src\utils\Cookie.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Cookie from 'js-cookie'

const TokenKey = 'token'
export const getToken = () => {
  return Cookie.get(TokenKey)
}

export const setToken = (token) => {
  return Cookie.set(TokenKey, token, { expires: 7 })
}

export const removeToken = () => {
  return Cookie.remove(TokenKey)
}
